package InterfaceUtilisateur;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.Color;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.SwingConstants;
import javax.swing.JSplitPane;
import java.awt.GridLayout;
import javax.swing.JTextPane;

public class AffichagePatient extends JFrame {

	private JPanel contentPane;



	/**
	 * Create the frame.
	 */
	public AffichagePatient() {
		setTitle("Catalogue : Informations Patient");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBackground(new Color(0, 255, 255));
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new BorderLayout(0, 0));
		
		JPanel panelPatientNorth = new JPanel();
		panelPatientNorth.setBackground(new Color(0, 255, 127));
		contentPane.add(panelPatientNorth, BorderLayout.NORTH);
		
		JLabel lblPatientTitre = new JLabel("Le patient : ");
		lblPatientTitre.setFont(new Font("Arial", Font.BOLD, 15));
		panelPatientNorth.add(lblPatientTitre);
		
		JLabel lblNomPatient = new JLabel("Nom");
		lblNomPatient.setBackground(new Color(0, 255, 127));
		lblNomPatient.setFont(new Font("Arial", Font.BOLD, 15));
		lblNomPatient.setForeground(new Color(0, 0, 0));
		panelPatientNorth.add(lblNomPatient);
		
		JPanel panelPatientSouth = new JPanel();
		panelPatientSouth.setBackground(new Color(0, 255, 255));
		contentPane.add(panelPatientSouth, BorderLayout.SOUTH);
		panelPatientSouth.setLayout(new BorderLayout(0, 0));
		
		JButton btnRetour = new JButton("Retour");
		btnRetour.setHorizontalAlignment(SwingConstants.RIGHT);
		panelPatientSouth.add(btnRetour, BorderLayout.EAST);
		
		JPanel panelPatientCenter = new JPanel();
		panelPatientCenter.setBackground(new Color(0, 255, 255));
		contentPane.add(panelPatientCenter, BorderLayout.CENTER);
		panelPatientCenter.setLayout(new GridLayout(1, 0, 0, 0));
		
		JLabel lblPatientPrenom = new JLabel("Pr\u00E9nom :");
		lblPatientPrenom.setFont(new Font("Arial", Font.BOLD, 13));
		panelPatientCenter.add(lblPatientPrenom);
		
		JLabel lblPatientPrenomX = new JLabel("X");
		lblPatientPrenomX.setFont(new Font("Arial", Font.BOLD, 15));
		panelPatientCenter.add(lblPatientPrenomX);
		
		JLabel lblPatientTraitement = new JLabel("Traitement : ");
		lblPatientTraitement.setFont(new Font("Arial", Font.BOLD, 14));
		panelPatientCenter.add(lblPatientTraitement);
		
		JTextPane textPane = new JTextPane();
		panelPatientCenter.add(textPane);
	}

}
